import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { FormsModule }   from '@angular/forms';
import { HttpModule }    from '@angular/http';

import { AppRoutingModule }     from './app-routing.module';

// Imports for loading & configuring the in-memory web api
//import { InMemoryWebApiModule } from 'angular-in-memory-web-api';
import { InMemoryDataService }  from './model/in-memory-data.service';

import { AppComponent } from './app.component';
import { HeroDetailComponent } from './hero-detail.component';
import { HeroesComponent }     from './heroes.component';
import { HeroService }         from './hero.service';
import { DashboardComponent }  from './dashboard.component';

@NgModule({
    declarations: [
        AppComponent, HeroDetailComponent, HeroesComponent, DashboardComponent
    ],
    imports: [ 
        BrowserModule, FormsModule, AppRoutingModule, HttpModule, 
    ],
    providers: [
        HeroService
    ],
    bootstrap: [
        AppComponent
    ]
})



export class AppModule { }

